package com.sun.service.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sun.common.core.entity.BaseDO;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.context.annotation.Primary;

import java.util.Date;
import java.util.concurrent.atomic.AtomicInteger;

@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@TableName("tm_sys_num_resource")
public class TmSysNumResourceDo extends BaseDO {

    private static final long serialVersionUID = 1L;

    /**
     * 编号对象
     */
    @TableField("num_resource")
    private String numResource;

    /**
     * 下一个可用的号码
     */
    @TableField("next_no")
    private Long nextNo;

    /**
     * 重置日期
     */
    @TableField("reset_date")
    private Date resetDate;

    /**
     * 最小值
     */
    @TableField("min_val")
    private Long minVal;

    /**
     * 最大值
     */
    @TableField("max_val")
    private Long maxVal;

    /**
     * 每次增加间隔
     */
    @TableField("step")
    private Integer step;

    @TableField("reset_type")
    private String resetType;

    @TableField(exist = false)
    private long number;
}